<?php
namespace app\modules\wechat\modules\auto\controllers;

/**
 * 微信请求默认处理类.
 * 注: 处理类必须继承ProcessController基类以使用微信消息的相关功能
 */
class ProcessController extends \callmez\wechat\components\ProcessController
{
    /**
     * 解析到该Action需要添加回复规则, 可以在后台增加回复规则控制菜单来管理
     */
    public function actionIndex()
    {
        // 微信请求的信息主体内容
         $message = $this->message;

        // 返回文本消息,返回其他类型信息和微信消息相关处理功能请查看继承的父类
        // responseImage, responseNews, responseVideo, responseVoice, response, getWechat
//        return $this->responseText('回复文字:哈哈');

        $result = array(
            [
                'title' => '流量全能王',
                'description' => '流量全能王',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGicEC7BX5nBXe7j1yKRYKkjv1G72SoC1a5yiccME4N6uSxYJId5t9qsKXg/0?wx_fmt=png',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=1&sn=3dac5fa6833672aeb708f4dbb644d9c8&scene=0#wechat_redirect'
            ],
            [
                'title' => '平台优势',
                'description' => '平台优势',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGiczOrSRQyN6SyVuCSKZOppBp5KZr4XwGUyKy9icO9xwPLG1OE1KlSZyXw/0?wx_fmt=jpeg',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=2&sn=f69093fa72ea97614b340ea1c32f50de&scene=0#wechat_redirect'
            ],
            [
                'title' => '流量充值',
                'description' => '流量充值',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGicYicDEsl8LY3RVWdvMLPhVIcu8MpHOQUxnibTsoWiaduagvjDfyqdwWokw/0?wx_fmt=jpeg',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=3&sn=d00fe78ae4c0f600708355467fea9ec3&scene=23&srcid=0713ImWTHloS7fKAvudfSyYa#rd'
            ],
            [
                'title' => '订单查询',
                'description' => '订单查询',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGic8ibVFWvqrQNFCNxtT55qzwHj3ZcI7TDYq9d7IHPj1QiavPJu3vPdgeBg/0?wx_fmt=jpeg',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=4&sn=0dfeee4cce3b250f5159df124c5dbb1c&scene=23&srcid=0713FXKIn6KlFiGDkFnw9G2R#rd'
            ],
            [
                'title' => '代理加盟',
                'description' => '代理加盟',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGicgHkDWlpsdDAE3rJzLRb2oAsdbTMS1xPZwUeaYyTgrcibjC5icSR6GQcQ/0?wx_fmt=jpeg',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=5&sn=fd3af865b1f73ee83c3b59f70a9883e3&scene=23&srcid=07137SY0YxEyZqJcgGzKUUVw#rd'
            ],
            [
                'title' => '佣金体系',
                'description' => '佣金体系',
                'picUrl' => 'https://mmbiz.qlogo.cn/mmbiz/MIJOicLEWbq8952bDQtz53o0rC5yFexGiczkHKQSaeunUZJgN0p2FIHw3I3RN4Y3aaUicqDNjiaKMf2yHdbLolaWuw/0?wx_fmt=jpeg',
                'url' => 'http://mp.weixin.qq.com/s?__biz=MzIyOTQ1NTQwNg==&mid=100000025&idx=6&sn=694a89e446dd9eb0216f82e76b478426&scene=23&srcid=0713hdN4wRA5rt4w6yCeCcmx#rd'
            ],

        );
        return $this->responseNews($result);
    }
}
